package com.springboot.test.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 错误码枚举
 */
@Getter
@AllArgsConstructor
public enum ErrorCode {
    USER_LOGIN(10001,"用户未登录"),
    USER_NOT_EXIST(10002,"用户不存在"),
    PASSWORD_ERROR(10003,"用户名或密码错误"),
    USER_ID_PHONE_EXIST(10004,"用户编号或手机号已存在"),
    GOODS_TYPE_EXIST(10005,"商品分类已存在"),
    REGISTER_CODE_DISABLED(10006,"验证码失效或错误"),
    OLD_PASSWORD_ERROR(10007,"旧密码错误"),
    USER_BLOCK(10008,"用户已被拉黑"),
    SUCCESS(20000,"请求成功"),
    ERROR(99999,"系统错误")
    ;
    Integer code;
    String message;
}
